<template>
  <div class="container">
    <el-tabs
      v-model="activeName"
      type="card"
      @tab-click="handleClick"
      class="commonTab"
    >
      <el-tab-pane label="企业监管人员" name="first">
        <companyRegulation></companyRegulation>
      </el-tab-pane>
      <el-tab-pane label="区域监管人员" name="second">
        <areaRegulation></areaRegulation>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
/*{{}}*/
import companyRegulation from '@/components/employee/companyRegulation'
import areaRegulation from '@/components/employee/areaRegulation'
export default {
  name: 'fiveMembersConfList',
  components: {
    companyRegulation,
    areaRegulation,
  },
  data() {
    return {
      activeName: 'first',
      // isShowFirst:true,
      // isShowSecond:false
    }
  },
  created() {},
  methods: {
    //tabs栏切换
    handleClick(tab, event) {
      if (tab.label == '企业监管人员') {
        // this.isShowFirst = true;
        // this.isShowSecond = false;
      } else if (tab.label == '区域监管人员') {
        //   this.isShowFirst = false;
        // this.isShowSecond = true;
      }
    },
  },
}
</script>

<style scoped lang="less">
.mainCon {
  padding: 0;
}
</style>
